home *** CD-ROM | disk | FTP | other *** search
- Path: chewy.vcx.net!usenet
- From: Bruce Arnold <barnold@vcx.net>
- Newsgroups: comp.lang.c
- Subject: Re: how to seperate tokens in a string
- Date: Thu, 15 Feb 1996 22:16:32 -0800
- Organization: Sprint United Telephone/Eastern - Internet @ccess
- Message-ID: <31242140.52AF@vcx.net>
- References: <4ft8n9$5kg$1@mhafc.production.compuserve.com>
- NNTP-Posting-Host: y-wing-2a-32.tatooine.vcx.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (Win16; I)
-
- > I am looking for a best way of seperating the tokens from a
- > string. The string to be processed somewhat like those in the
- > Windows INI file:
- > Keyword=TYPE##
-
- The C standard library routine 'strtok()' is a very powerful function
- that is usually used for this type of problem. Just use the '=' as
- a delimiter and then parse out the TYPE## manually.
- ...Bruce
-